<template>
    <scroll-view class="scroll-view" scroll-y="true" @scrolltolower="scrolltolower">
        <image class="img1" src="@/static/points1.png" mode=""></image>
        <image class="img2" src="@/static/points2.png" mode=""></image>
        <view class="flex1">
            <view class="pion">全部消费积分</view>
            <view>5000.00</view>
        </view>
        <view class="bgc">
            <view class="mx">积分明细</view>
            <!-- 列表 -->
            <view class="box-list" v-for="it in 15">
                <view>
                    <view>商品消费</view>
                    <view class="list-left">2024-08-12 14:20:50</view>
                </view>
                <view class="list-right">+20</view>
            </view>
        </view>
    </scroll-view>
</template>

<script setup>
const scrolltolower = () => {
    console.log('滚动到底部');
};
</script>

<style lang="scss" scoped>
.scroll-view {
    .flex1 {
        .pion {
            font-size: 32rpx;
            margin-bottom: 28rpx;
        }
        position: absolute;
        top: 48rpx;
        left: 60rpx;
        color: #fff;
        font-size: 64rpx;
    }
    .img2 {
        position: absolute;
        top: 20rpx;
        left: 30rpx;
        width: 690rpx;
        height: 220rpx;
    }
    .img1 {
        height: 384rpx;
        width: 100%;
    }
    .bgc {
        .box-list {
            .list-left {
                color: #999999;
                margin-top: 10rpx;
                font-size: 24rpx;
            }
            .list-right {
                font-size: 48rpx;
                color: #ff0000;
            }
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 120rpx;
            border-bottom: 2rpx solid #f5f5f5;
            font-size: 28rpx;
        }
        .mx {
            margin-bottom: 34rpx;
        }
        width: 100%;
        background-color: #fff;
        position: absolute;
        border-radius: 40rpx;
        top: 344rpx;
        padding: 50rpx 30rpx 0 30rpx;
    }
    height: 100vh;
    padding-bottom: 100rpx;
}
</style>
